/*
 * @Author: Lzx
 * @Date: 2022-04-14 20:15:01
 * @LastEditors: Lzx
 * @LastEditTime: 2022-04-14 20:50:03
 * @FilePath: /web-vue/src/utils/request.js
 * @Description: axios 请求工具类
 */
import axios from "axios";

// 创建 axios请求 实例
const request = axios.create({
  // API 请求的默认前缀
  //baseURL: process.env.VUE_APP_API_BASE_URL,
  baseURL: "http://106.15.125.227:8088/",
  //baseURL: "http://localhost:8088/",
  withCredentials: true,
//   headers: {
//     "Content-Type": "application/x-www-form-urlencoded",
//     post: {
//       "Content-Type": "application/json",
//     },
//   },
  timeout: 60000,
});

export default request;
